package com.atguigu.spring6.di_test;

public class Emp {
    private String name;
    private Integer age;
    private dept de;
    private String[] loves;

    public String[] getLoves() {
        return loves;
    }

    public void setLoves(String[] loves) {
        this.loves = loves;
    }

    public void work(){
        System.out.println(de.getName()+"部门的"+name+"正在工作。。。");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public dept getDe() {
        return de;
    }

    public void setDe(dept de) {
        this.de = de;
    }
}
